package com.itheima.provider.service;

import com.itheima.provider.domain.Goods;
import com.itheima.provider.mapper.GoodsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsService {
    @Autowired
    private GoodsMapper goodsMapper;

    public Goods getGoods(Integer id){
        Goods goods = goodsMapper.getGoods(id);
        return goods;
    }
}
